package com.demo.service;

import com.demo.dao.UserDao;
import com.demo.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/2/13 0013.
 */
@Service
public class UserService {
    @Autowired
    private UserDao userDao;

    public Page<User> userPage(Pageable pageable) {
        Page<User> userPage = userDao.findAllCustom(pageable);
        return userPage;
    }
}
